﻿<%@ Page Title="" Language="C#" MasterPageFile="~/iFrameMasterPage.master" AutoEventWireup="true" CodeFile="SurfaceGroupEditor.aspx.cs" Inherits="SurfaceGroupEditor" %>

<%@ Register src="Ctl/ctlFilterPanel.ascx" tagname="ctlFilterPanel" tagprefix="uc1" %>

<%@ Register src="Ctl/ctlFilterEditor.ascx" tagname="ctlFilterEditor" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
<script type="text/javascript">
    
    
    </script>
    <table width ="100%" cellpadding ="1" cellspacing ="1" >
    <tr >
        <td style ="width :20px" >            
            <asp:Image ID="Image1" ImageUrl ="~/images/Calendar_scheduleHS.png" runat="server" />
        </td>
        <td style ="text-align :left;font-weight :bold"  >
            Группа сторон
        </td>
        <td style ="text-align :center;font-weight :bold;"  >
            <asp:Label ID="Label4" CssClass="msgAlert" style="display :none "  runat="server" Text="Сохраните изменения"></asp:Label>
        </td>
        <td style ="text-align :right " >    
            <asp:LinkButton ID="LinkButton1"  runat="server" CssClass="btn" OnClick ="btnSaveExit_Click" OnClientClick ="skm_LockScreen();">Вернуться</asp:LinkButton>                                                                                         
        </td>
    </tr>
</table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server"  >
    <ContentTemplate >
        <div class="TblCaption" 
                onclick="CaptionToggle('body_CommonInfo','Caption_CommonInfo');" 
                style="width:100%; height :25px">
                <table style="width:100%;">
                    <tr>
                        <td ID="Caption_CommonInfo" class="ArrowDown">
                            &nbsp;</td>
                        <td>
                            Общая информация &nbsp;                            
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </div>
        <div ID="body_CommonInfo" style="width:100%">
                <table cellpadding="0" cellspacing="0" style="width:100%;">
                    <tr ID="trCommonInfo">
                        <td width="25%">
                            <table cellpadding="2" cellspacing="0" style="width:100%;">
                                <%--GID--%>
                                <tr>
                                    <td width="25%">
                                        &nbsp;</td>
                                    <td class="grd_td_item_caption" style="width:25%">
                                        Наименование:
                                        <asp:RequiredFieldValidator ID="txtNameValidator1" runat="server" 
                                            ControlToValidate="txtName" Text ="*" ErrorMessage="*"></asp:RequiredFieldValidator>
                                    </td>
                                    <td class="grd_td_item">
                                        <asp:TextBox ID="txtName" Text =<%#SurfaceGroup.Name%> runat="server" CssClass="RequiredTextBox" 
                                            Width="99%"></asp:TextBox>
                                    </td>
                                </tr>                                
                                <tr>
                                    <td width="25%">
                                        &nbsp;</td>
                                    <td class="grd_td_item_caption" style="width:25%; vertical-align :top">
                                        Дополнительно:</td>
                                    <td class="grd_td_item">
                                        <asp:TextBox ID="txtComment" runat="server" CssClass="TextBox" Height="47px" 
                                             TextMode="MultiLine" Width="99%"></asp:TextBox>
                                    </td>
                                </tr>                                
                                <tr>
                                    <td width="25%">
                                        &nbsp;</td>
                                    <td style="width:25%">
                                        &nbsp;</td>
                                    <td style="text-align :right ">
                                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                            <ContentTemplate>
                                                <asp:Button ID="btnSaveCommonInfo" runat="server" CssClass="btn_wizard" 
                                                     Text="Сохранить"  
                                                    onclientclick="skm_LockScreen();" onclick="btnSaveCommonInfo_Click"  />
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
</div>
        <asp:Panel runat="server" ID ="pnlList" Visible =<%# !IsNewRecord %>>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server"  >
    <ContentTemplate >
        <div class="TblCaption" style ="height :27px" >
        <table width="100%" cellpadding ="2" cellspacing ="0">
            <tr >          
                <td style="width :20px">           
                    <asp:ImageButton ID="ImageButton1" ImageUrl ="~/images/grd_plus.gif"  runat="server" onclick="ImageButton1_Click"  />                
                </td>                                  
                
                <td style ="width:250px" >
                            
                                <asp:TextBox ID="TxtLexema"  Width ="97%"  CssClass ="TextBox " runat="server"></asp:TextBox>                                                
                            
                </td>
                
                <td style ="width:20px; text-align :center   " >
                                <asp:ImageButton ID="btnFind"  ImageUrl ="~/images/search_button.gif" 
                                    runat="server"  />
                </td>
                <td class ="Split_Left " style ="text-align :left " >
                     <asp:CheckBox ID="chOnlyGroupSide" AutoPostBack ="true" OnCheckedChanged ="OnOffOnlySelect" OnClientClick ="skm_LockScreen();" runat="server" Text="Только отобранные" TextAlign="Right"  />
                </td>
                <td  >
                   &nbsp 
                </td>
            </tr>
       </table>
    </div>
        <asp:MultiView ID="MultiView1" runat="server">     
         <asp:View ID="View2" runat="server">
            <div id ="Div1"  class ="EditRowBackGround" style="border-bottom: 1px solid rgb(192, 192, 192);" >
                <uc2:ctlFilterEditor ID="ctlFilterEditor1" runat="server" />
            </div>
         </asp:View>
    </asp:MultiView>
    </ContentTemplate>
    </asp:UpdatePanel>
        <table style="width: 100%;" cellpadding ="0" cellspacing ="0">    
            <asp:ListView ID="lvSideList" runat="server" >
            <LayoutTemplate>    
            <tr>              
                    <td  class ="grd_td_item_caption"  >                    
                    
                            <table width ="100%" cellpadding  ="0" cellspacing ="0" >
                                <tr >
                                     <td style="width :20px;text-align :center" >           
                                        &nbsp
                                    </td>                                
                                     <td style="width :20px">
                                        &nbsp
                                    </td>
                                     <td  style="width :200px">
                                        Номер
                                    </td>                                                
                                     <td  style="width :300px">
                                        Конструкция
                                    </td>            
                                     <td style="width :40%" >
                                        Адрес
                                     </td> 
                                     <td style="width :100px" >
                                         Цена
                                     </td>                                
                                     <td style="width :20px" >
                                            &nbsp
                                    </td>
                                  </tr>    
                             </table> 
                    
                    </td> 
                </tr>                                                                                                                
            <tr ID="itemPlaceholder" runat="server">                                                        
            </tr>        
            </LayoutTemplate>
            <EmptyDataTemplate >
            <tr>  
            <td style ="text-align :center " >
                По вашему запросу ничего не найдено
            </td>            
            </tr> 
                
            </EmptyDataTemplate>
            <ItemTemplate>        
                <tr>              
                    <td class ="grd_td_item"  class ="grd_td_item" onmouseover ="GrdItemOnMouseOver(this);" onmouseout ="GrdItemOnMouseOut(this);"  >                    
                            <table width ="100%" cellpadding  ="0" cellspacing ="0" >
                                <tr >
                                     <td style="width :20px;text-align :center" >           
                                         <asp:UpdatePanel ID="updCheckBoxUpdate" runat="server">
                                            <ContentTemplate >
                                                <asp:CheckBox ID="chSideInGroup" Checked =<%# SideInGroup((string)Eval("ID")) %> CssClass = <%# Eval("ID")%> OnCheckedChanged ="SideInGroup_CheckedChanged" AutoPostBack ="true"  runat="server" />                                                
                                            </ContentTemplate>
                                         </asp:UpdatePanel>
                                         
                                         
                                    </td>                                
                                     <td style="width :20px">
                                        <%# Eval("Litera")%>
                                    </td>
                                     <td  style="width :200px">
                                        <%#  Eval("Constraction.Number")%>
                                    </td>                                                
                                     <td  style="width :300px">
                                        <%#  Eval("Constraction.ConstractionTypeAsString")%>
                                    </td>            
                                     <td style="width :40%" >
                                        <%# Eval("Constraction.FullAdress")%>
                                     </td> 
                                     <td style="width :100px" >
                                        <%# Eval("CurrentPrice")%>
                                     </td>                                
                                     <td style="width :20px" >
                                            <asp:ImageButton ID="ImageButton3" runat="server"   CommandName="Edit"   ImageUrl="~/images/icon-edit.gif" /> 
                                    </td>
                                  </tr>    
                             </table> 
                    </td> 
                </tr> 
            </ItemTemplate>         
            </asp:ListView> 
        </table>
 </asp:Panel>
 
 </ContentTemplate> 
</asp:UpdatePanel> 
    
</asp:Content>

